package com.example.demo.entity;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Notification {
    private Integer notification_id;
    private Integer user_id;
    private String content;
    private Boolean is_read;
    private LocalDateTime createdAt;

    // 添加isRead()方法
    public boolean is_read() {
        return this.is_read;
    }
}
